package com.yunwushanhe.student.bean.req;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ScoreAddReq {

    /**
     * 外键:student表的id
     */
    @NotNull
    private Long studentId;
    /**
     * 考试名称
     */
    @NotBlank
    private String examName;
    /**
     * 语文成绩
     */
    @NotNull
    private Double cnScore;
    /**
     * 英语成绩
     */
    @NotNull
    private Double enScore;
    /**
     * 数学成绩
     */
    @NotNull
    private Double mathScore;

}
